import Vue from 'vue'
import Router from 'vue-router'

import movieRoter from './movie'
import cinemaRoter from './cinema'
import mineRoter from './mine'

Vue.use(Router)

export default new Router({
 routes: [
        movieRoter,
        cinemaRoter,
        mineRoter,
        // 重定向：当上面路由都不匹配的情况下，跳转到movie页面
        {
            path:'/*',
            redirect:'/movie'
        }
    ]
})